package com.WebSocket;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin
@RequestMapping("/websocket")
@RestController
@Api(tags = "websocket管理器")
public class WebSocketController {
    @GetMapping("/getSocketData")
    @ApiOperation(value = "查看SocketData格式")
    public SocketData getSocketData() {
        return new SocketData();
    }
}
